<script stype="text/javascript" charset="utf-8" src="js/register_handler.js"></script>
<div id="form_register" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="registermodal" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
			×
		</button>
		<h4>Đăng ký</h4>
	</div>
	<div class="modal-body">
		<div class="form" >
			<!-- Register form (not working)-->
			<form class="form-horizontal" name="reg" method="post" >
				<!-- Name -->
				<div class="control-group">
					<label class="control-label" for="email">Email</label>
					<div class="controls">
						<input type="text" class="input-large" name="email" id="register_email">
					</div>
				</div>
				<!-- Email -->
				<div class="control-group">
					<label class="control-label" for="input_password">Mật khẩu</label>
					<div class="controls">
						<input type="password" class="input-large" name="password" id="register_password">
					</div>
				</div>

				<div class="control-group">
					<label class="control-label" for="input_passwordConfirm">Nhập lại mật khẩu</label>
					<div class="controls">
						<input type="password" class="input-large" name="register_confirmPassword" id ="register_confirmPassword">
					</div>
				</div>

				<!-- Select box -->
				<div class="control-group">
					<label class="control-label" for="provinceID">Tỉnh thành</label>
					<div class="controls">
						<select name="provid" id="register_province">
							<?php
							getListProvince();
							?>
						</select>
					</div>
				</div>
				<!-- Select box -->
				<div class="control-group">
					<label class="control-label" for="professionArea">Lĩnh vực</label>
					<div class="controls">
						<select name="professionArea" id = "register_professionArea"  onchange="getListProfession()">
							<?php
							getListProfessionArea();
							?>
						</select>
					</div>
				</div>

				<!-- Select box -->
				<div class="control-group">
					<label class="control-label" for="professionID">Chuyên môn</label>
					<div class="controls">
						<select name="profid" id="register_profession">
							<script type="text/javascript" charset="utf-8">
								getListProfession();
							</script>
						</select>
					</div>
				</div>
				<!-- CompanyName -->
				<div class="control-group">
					<label class="control-label" for="companyName">Tên công ty</label>
					<div class="controls">
						<input type="text" class="input-large" name="cpnname" id="register_company">
					</div>
				</div>
				<!-- Phone -->
				<div class="control-group">
					<label class="control-label" for="phone">Phone</label>
					<div class="controls">
						<input type="text" class="input-large" name="phone" id="register_phone">
					</div>
				</div>
				<!-- Address -->
				<div class="control-group">
					<label class="control-label" for="address">Địa chỉ</label>
					<div class="controls">
						<input type="text" class="input-large" name="address" id="register_address">
					</div>
				</div>

				<!-- Buttons -->
				<div class="form-actions">
					<!-- Buttons -->
					<button type="button" onclick="registerUser()" name="register" class="btn">
						Đăng ký
					</button>
					<button type="reset" class="btn">
						Hủy
					</button>
				</div>

			</form>
		</div>
	</div>
	<div class="modal-footer">
		<p>
			Đã có tài khoản? <a href="#login" data-toggle="modal" data-dismiss="modal" >Đăng nhập</a>
		</p>
	</div>
</div>
